package com.zhao.log;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

//后置日志
public class AfterLog implements AfterReturningAdvice {
    //o：返回值
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("执行了"+method.getName()
        +"返回值是："+o);
    }
}
